<div class="container col-md-6 top50">
    <div class="card">
        <div class="card-header">
            <i class="icon-note"></i>{{controller.meta_title}}
            <div class="card-actions">
                <a class="text-muted close" data-dismiss="modal">×</a>
            </div>
        </div>
        <div class="card-body ">
            <div class="card-body">
                <form id="ajax-post-form" action="/admin/views/user/edit" method="post"
                      class="form-horizontal" data-validate="parsley">

                    <div class="form-group row">
                        <label class="col-md-2 form-control-label top-8px" for="group">所属组织</label>
                        <div class="col-md-10">
                            <select id="group" name="group" class="form-control">
                                <option value="0">请选择所属组织</option>
                                <option value="1">Option #1</option>
                                <option value="2">Option #2</option>
                                <option value="3">Option #3</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group row">
                        <label class="col-md-2 form-control-label top-8px" for="username">用户名</label>
                        <div class="col-md-10">
                            <input type="text" name="username" id="username" class="form-control"
                                   placeholder="请输入用户名" disabled data-required="true" value="{{user.u_name}}">
                        </div>
                    </div>
                    <div class="form-group row">
                        <label class="col-md-2 form-control-label top-8px" for="usertitle">用户昵称</label>
                        <div class="col-md-10">
                            <input type="text" name="usertitle" id="usertitle" class="form-control"
                                   placeholder="请输入用户昵称" data-required="true"value="{{user.u_title}}">
                        </div>
                    </div>
                    <div class="form-group row  ">
                        <label class="col-md-2 form-control-label top-8px" for="userpass">密码</label>
                        <div class="col-md-10">
                            <input type="password" id="userpass" name="userpass" class="form-control "
                                   placeholder="请输入密码" data-required="true">
                        </div>
                    </div>
                    <div class="form-group row">
                        <label class="col-md-2 form-control-label top-8px" for="userrepass">确认密码</label>
                        <div class="col-md-10">
                            <input type="password" id="userrepass" name="userrepass" class="form-control"
                                   placeholder="请输入确认密码" data-required="true">
                        </div>
                    </div>
                    <div class="form-group row">
                        <label class="col-md-2 form-control-label top-8px" for="useremail">联系方式</label>
                        <div class="col-md-10">
                            <input type="text" id="useremail" name="useremail" class="form-control"
                                   placeholder="请输入联系方式.非必填" data-type="email" data-required="true">
                        </div>
                    </div>
                    <div class="form-group row">
                        <label class="col-md-2 form-control-label top-8px">状态</label>
                        <div class="col-md-10">
                            <select id="u_tf" name="u-tf" class="form-control">
                                <option value=" ">请选择状态</option>
                                <option value="1"{%if user.u_tf ==1%}selected{%endif%}>启用</option>
                                <option value="0" {%if user.u_tf ==0%}selected{%endif%}>禁用</option>
                                <option value="2" {%if user.u_tf ==2%}selected{%endif%}>Option #3</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group row">
                        <label class="col-md-2 form-control-label top-8px" for="textarea-input">备注</label>
                        <div class="col-md-10">
                            <textarea id="textarea-input" style="height: 100px;" name="u-note" rows="9"
                                      class="form-control" placeholder="请输入备注.非必填"></textarea>
                        </div>
                    </div>
                    <div class="card-footer">
                        <input type="hidden" name="id" value="{{user.id}}">
                        <button type="submit" target-form="ajax-post" class="btn btn-sm btn-primary"><i
                                class="fa fa-dot-circle-o"></i> 保存
                        </button>
                        <button type="reset" class="btn btn-sm btn-danger"><i class="fa fa-ban"></i> 重置</button>
                    </div>
                </form>
            </div>

        </div>
    </div>
</div>

